Skip to content

Remove rustls-pemfile dependency - #1011

Open
ethanhann wants to merge 2 commits into
cloudflare:mainfrom
ethanhann:chore/remove_rustls_pemfile_dependency
Open

ethanhann wants to merge 2 commits into
cloudflare:mainfrom
ethanhann:chore/remove_rustls_pemfile_dependency

Conversation

@ethanhann

@ethanhann ethanhann commented Sep 15, 2026 •

Copy link
Copy Markdown

Addresses issue #772

rustls-pemfile was used in two ways in pingora-rustls:

  1. Explicitly as a parser
  2. Implicitly as a dependency of rustls-native-certs

The explicit use was replaced by a newer version of rustls-pki-types that included parsing functionality. This was a pretty simple change.

Upgrading rustls-native-certs was more complicated. Its load_native_certs() function now returns an exhaustive list of errors. I preserved the existing behavior by returning on the first error. The bigger issue is that pingora-rustls exports load_native_certs() which is technically a breaking change and should be noted in the release notes for the next version. Nothing else in the code base appears to rely on this re-export though.

…tls-pemfile

This change makes the minimum changes necessary to adhere to the new response type from load_native_certs()
@ethanhann ethanhann changed the title Remove rustls pemfile dependency Remove rustls-pemfile dependency Sep 15, 2026
@drcaramelsyrup drcaramelsyrup added the dependencies Pull requests that update a dependency file label Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants